for i in range(33+1):               #大马
    for j in range(int((100-3*i)/2+1)):  #中马
        k = 100 - 3*i - 2*j         #小马
        if 3*i+2*j+k==100 and i+j+2*k==100:
            print(i,j,2*k)









